import {http} from './request.js'
export const addressAPI ={
    addAddress:(data)=>http.secure.post('/addresses',data),
    updateAddress:(id,data)=>http.secure.put(`/addresses/${id}`,data),
    deleteAddress:(id)=>http.secure.delete(`/addresses/${id}`),
    getUserAddresses:()=>http.secure.get('/addresses'),
}